package com.ruoyi.card.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 卡密管理对象 card_secret
 * 
 * @author shan
 * @date 2022-06-08
 */
public class CardSecret extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 卡密 */
    @Excel(name = "卡密")
    private String cardId;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expireDatetime;

    /** 卡密类型 */
    @Excel(name = "卡密类型")
    private Integer cardType;

    /** 卡密状态 */
    @Excel(name = "卡密状态")
    private Integer cardState;

    /** 备注 */
    @Excel(name = "备注")
    private String mark;

    /** 使用状态 */
    @Excel(name = "使用状态")
    private Integer useState;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCardId(String cardId) 
    {
        this.cardId = cardId;
    }

    public String getCardId() 
    {
        return cardId;
    }
    public void setExpireDatetime(Date expireDatetime) 
    {
        this.expireDatetime = expireDatetime;
    }

    public Date getExpireDatetime() 
    {
        return expireDatetime;
    }
    public void setCardType(Integer cardType) 
    {
        this.cardType = cardType;
    }

    public Integer getCardType() 
    {
        return cardType;
    }
    public void setCardState(Integer cardState) 
    {
        this.cardState = cardState;
    }

    public Integer getCardState() 
    {
        return cardState;
    }
    public void setMark(String mark) 
    {
        this.mark = mark;
    }

    public String getMark() 
    {
        return mark;
    }
    public void setUseState(Integer useState) 
    {
        this.useState = useState;
    }

    public Integer getUseState() 
    {
        return useState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cardId", getCardId())
            .append("expireDatetime", getExpireDatetime())
            .append("cardType", getCardType())
            .append("cardState", getCardState())
            .append("mark", getMark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("useState", getUseState())
            .toString();
    }
}
